package errorLayer;

import javax.swing.JOptionPane;

public class staffAlreadyWorking extends JOptionPane {
	
	private String sName;
	private String clName;
	
	public staffAlreadyWorking (String staffName, String className) {
		
		this.sName = staffName;
		this.clName = className;
		
		displayMessage();
		
	}
	
	private void displayMessage () {
		
		this.showMessageDialog(getParent(), "Staff member, " + sName + ", is teaching " + clName + ".", "ERROR: 101", JOptionPane.OK_OPTION);
		
	}

}
